The Smart ComboBox Component > FSmartComboBox.getPersistent()

 

FSmartComboBox.getPersistent()

Availability

Macromedia Flash Player 6.

Usage

myCombo.getPersistent();

Parameters

None.

Returns

The method getPersistent returns a value of true if the ComboBox is set to save its history between user sessions. The method getPersistent returns a value of false if it is not set to save its history between user sessions.

Description

This methods returns a boolean value indicating whether the data stored within the component's history will be saved between user sessions. True indicates that the data will be saved into a Shared Object and will automatically load and display in subsequent user sessions. False indicates that the data will not be saved once the user's session ends.

Example

The following example shows how to use the method getPersistent to get the boolean value that represents whether the ComboBox component is persistent or not. The method then displays a message in the output window indicating the status.

var bool = myCombo.getPersistent();
trace("Data will be saved : " + bool);

See also

FSmartComboBox.setPersistent